package cn.zhl.设计模式.访问者;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2021-03-22 17:01
 **/
public class Client {
	public static void main(String[] args) {
		PersonStucs ps = new PersonStucs();

		Man man = new Man();
		Woman woman = new Woman();
		ps.add(man);
		ps.add(woman);
		Man man1 = new Man();
		ps.add(man1);

//		Action action = new Success();
		Action action = new Fail();

		ps.display(action);
	}
}
